// This file was created by Filewrap 1.1
// Little endian mode
// DO NOT EDIT

#include "../PVRTMemoryFileSystem.h"

// using 32 bit to guarantee alignment.
#ifndef A32BIT
 #define A32BIT static const unsigned int
#endif

// ******** Start: ShadowFragShader.fsh ********

// File data
static const char _ShadowFragShader_fsh[] = 
	"uniform highp sampler2D sShadow;\r\n"
	"uniform sampler2D sTexture;\r\n"
	"\r\n"
	"varying highp vec4 projCoord;\r\n"
	"varying mediump vec2 texCoord;\r\n"
	"varying lowp vec3 LightIntensity;\r\n"
	"\r\n"
	"void main ()\r\n"
	"{\t\r\n"
	"\t// Subtract a small magic number to account for floating-point error\r\n"
	"\thighp float comp = (projCoord.z / projCoord.w) - 0.03;\r\n"
	"\thighp float depth = texture2DProj(sShadow, projCoord).r;\r\n"
	"\t\r\n"
	"\tlowp float val = comp <= depth ? 1.0 : 0.4;\r\n"
	"\tlowp vec3 color = texture2D(sTexture, texCoord).rgb * LightIntensity * val;\r\n"
	"\t\r\n"
	"\tgl_FragColor = vec4(color, 1.0);\r\n"
	"}\r\n"
	"\r\n";

// Register ShadowFragShader.fsh in memory file system at application startup time
static CPVRTMemoryFileSystem RegisterFile_ShadowFragShader_fsh("ShadowFragShader.fsh", _ShadowFragShader_fsh, 540);

// ******** End: ShadowFragShader.fsh ********

// This file was created by Filewrap 1.1
// Little endian mode
// DO NOT EDIT

#include "../PVRTMemoryFileSystem.h"

// using 32 bit to guarantee alignment.
#ifndef A32BIT
 #define A32BIT static const unsigned int
#endif

// ******** Start: ShadowFragShader.fsc ********

// File data
A32BIT _ShadowFragShader_fsc[] = {
0x10fab438,0xe7f3a211,0x30050100,0x2501,0xd363e337,0x2000000,0x20000000,0x1f050000,0x1000000,0x4000000,0x0,0x38000000,0x20304,0x4400,0x1030000,0x2,0x0,0x14020000,0x55535020,0x20,0x208,0x1,0x0,0x0,0x224,0x80,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x770009,0xffff,0x20007,0x0,0x40000,0x3,0x0,0x0,0x0,0x0,0x3fffc,0x40000,0x1,0x0,0xffff0003,0xffffffff,0x30000,0x800000,0x4,0x40001,0x40001,0x1,0x1,0x10000,0x4,0x30002,0x10003,0x10000,0x3,0x10000,0x1,
0x0,0xb0003,0x10000,0x30000,0x7,0x2,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0x20000,0x80010002,0x80018001,0x8001,0x0,0x0,0x1800000,0x10028000,0x1090880,0x100eb020,0x50080,0x30000,0x80010002,0x80018001,0x8001,0x0,0x0,0x10000,0x6880001,0x3,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x20001,0x0,0x20001,0x2,0x20003,0x80018001,0x80018001,0x0,0x0,0x0,0x80800000,0x1501a003,0x5804888,0x1ffce020,0x5004181,0x1ffce020,0x54581,0x10000,0x80010002,0x80018001,0x8001,0x0,0x0,0x70001,0x60a0007,
0x30003,0x3,0x60006,0x6,0x40004,0x4,0x10000,0x2,0x20001,0x0,0x20003,0x2,0x20002,0x80018001,0x80018001,0x0,0x0,0x100000,0xa8000345,0x90807982,0x60105c40,0x89a21802,0x6,0x1e020000,0x55535020,0x20,0x212,0x1,0x0,0x0,0x2a4,0x80,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x770009,0xffff,0x30007,0x0,0x40000,0x3,0x0,0x0,0x0,0x0,0x1fffc,0x40000,0x1,0x0,0xffff0003,0xffffffff,0x30000,0x800000,0x4,0x40001,0x40001,0x1,0x1,0x10000,0x4,
0x30002,0x10003,0x10000,0x3,0x10000,0x1,0x0,0xb0003,0x10000,0x30000,0x7,0x2,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0x20000,0x80010002,0x80018001,0x8001,0x0,0x0,0x1800000,0x10008000,0x1090880,0x1008b020,0x50080,0x30000,0x80010002,0x80018001,0x8001,0x0,0x0,0x10000,0x6880001,0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x30001,0x0,0x20001,0x2,0x20004,0x80018001,0x80018001,0x0,0x0,0x0,0x0,0x38080,0x48881501,0xe0400580,0x41811ffc,0xe0400500,0x45811ffc,0xa0000000,0x28831000,
0x5,0x20001,0x80018001,0x80018001,0x0,0x0,0x10000,0x70007,0x1060a,0x10001,0x0,0x0,0x40000,0x40004,0x0,0x20001,0x10000,0x3,0x30000,0x20002,0x20000,0x80010002,0x80018001,0x8001,0x0,0x0,0x450000,0x71802800,0x9c409080,0x18004010,0x689a2,0xc000000,0x8fc2f53c,0x0,0x0,0x0,0x0,0x0,0x0,0x803f,0x0,0x0,0x0,0xcdcccc3e,0x72700500,0x6f436a6f,0x64726f,0x6050000,0x1000003,0x10000,0xf000400,0x53730000,0x6f646168,0x77,0x30318,0x100,0x1000002,0x100,0x78655473,0x65727574,0x18000000,0x103,0x2000001,0x10100,
0x74000001,0x6f437865,0x64726f,0x6030000,0x1000002,0x10000,0x3000208,0x694c0000,0x49746867,0x6e65746e,0x79746973,0x4000000,0x106,0x1000001,0x30400,0x7,
};

// Register ShadowFragShader.fsc in memory file system at application startup time
static CPVRTMemoryFileSystem RegisterFile_ShadowFragShader_fsc("ShadowFragShader.fsc", _ShadowFragShader_fsc, 1343);

// ******** End: ShadowFragShader.fsc ********

